#include<stdio.h>
#define N 10
void Selection_sort(int arr[], int sz)
{
	for (int i = 0; i < sz; i++)
	{
		int flag = i;
		int t = 0;
		for (int j = i + 1; j < sz; j++)
		{
			if (arr[flag] > arr[j])
				flag = j;
		}
		if (flag != i)
		{
			t = arr[i];
			arr[i] = arr[flag];
			arr[flag] = t;
		}
	}
}
int main()
{
	int arr[N] = { 0 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < sz; i++)
		scanf_s("%d", &arr[i]);
	Selection_sort(arr, sz);
	for (int i = 0; i < sz; i++)
		printf("%d ", arr[i]);
	return 0;
}